using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Text;
using Castle.ActiveRecord;
using NHibernate.Expression;

namespace WOODIFramework.Model
{
    [ActiveRecord("FormPage")]
    public class FormPage : Page
    {
        #region Fields

        private Guid _formPageId;
        private string _action;

        #endregion

        #region Properties

        [JoinedKey("formPageID")]
        public Guid FormPageId
        {
            get { return _formPageId; }
            set { _formPageId = value; }
        }

        [Property]
        public string Action
        {
            get { return _action; }
            set { _action = value; }
        }

        #endregion

        #region Constructors

        private FormPage()
        {
            this.Id = Guid.NewGuid();
        }

        
        private FormPage(string Name)
        {
            this.Id = Guid.NewGuid();
            this.FormPageId = this.Id;
            this.Name = Name;
        }

        #endregion

        #region Public Methods

        #region Public Static Methods

        public static FormPage NewFormPage()
        {
            return new FormPage();
        }

        public static FormPage NewFormPage(string Name)
        {
            return new FormPage(Name);
        }

        #endregion

        #endregion


    }
}
